<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link  rel="stylesheet"  href="./Css/Index.css">
    <link  rel="stylesheet"  href="font-awesome-4.7.0/css/font-awesome.css">
    <link rel="stylesheet" href="node_modules/element-ui/lib/theme-chalk/index.css">    
	<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="static/h-ui/js/H-ui.js"></script>
	
</head>
<body>
    <div class="login">      
            <h1> 共享资源系统后台</h1>
       <div class="form">
       <div class="item">
            <i class="fa fa-user-circle" aria-hidden="true"></i>
            <input id="inputusername" name="username" type="text" placeholder="账户" class="input-text size-L">
       </div>
       <div class="item">
            <i class="fa fa-key" aria-hidden="true"></i>
            <input id="inputpassword" name="password" type="password" placeholder="密码" class="input-text size-L">
       </div>
       </div>
		<button onclick="jump()">登录</button>
    </div>
	
	<script >
	
	function jump(){
	  var rsp1 = $("input[type='text']").val();
	  var rsp2 = $("input[type='password']").val();
	  if(rsp1==3018216281){
		  if(rsp2=='131021'){
			   alert("欢迎你，超级管理员");
			   window.location.href="http://127.0.0.1:8848/final/src/resource.html";
		   }
		  else{
			  alert("密码错误");
		  }
	  }
	  else if(rsp1==3018216095){
		  if(rsp2=='123456'){
		     alert("欢迎你，超级管理员");
		     window.location.href="http://127.0.0.1:8848/final/src/normaleditor.html";
		  }
		  else{
		  	 alert("密码错误");
		  }
		 
	  }
	  else{
		  alert("不存在此管理员");
	  }
	  
	}
	</script>
</body>
</html>